home *** CD-ROM | disk | FTP | other *** search
- Path: isonews.bbn.hp.com!news
- From: Bruno RICHARD <bruno_richard@hp-france-om1.om.hp.com>
- Newsgroups: comp.lang.c
- Subject: Re: findfirst, findnext in VC
- Date: 6 Mar 1996 12:52:46 GMT
- Organization: Hewlett-Packard
- Message-ID: <4hk1qu$jb7@isoit109.bbn.hp.com>
- References: <cosmosisDnrC31.I48@netcom.com> <64HfLHrrnTB@softsite.co.at>
- NNTP-Posting-Host: gplbrd.grenoble.hp.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
-
- }Chris Akins (cosmosis@netcom.com) wrote on 04.03.96
- }about "findfirst, findnext in VC":
- }
- }[snip]
- }> to findfirst(). findfirst() would return the file information for the
- ]> first file that met the pattern (i.e. dosname, filepath, file size,
- }> ect.). findnext would return the next file that met the critira until
- }> the directory was exhausted of all matches. I need a function in VC
- }> that does the same thing (or at the very least returns the fullpath
- }> name of the matches).
- }
- }Why don't you read the manuals or the online help ???
- }_findfirst();
- }
- }Walter Sommergruber
-
- Take care, with new versions (32 bits) of VC++ there is no more
- findfirst()/findnext() functions. This is because of the new UNC and
- long file names conventions of Win32.
- You should then have a look to FindFirstFile() and FindNextFile()
- functions, which are part of the Win32 SDK.
-
- -bruno
-
-
-